package com.cnzhy.mybatis.plus.mapper;

import com.cnzhy.mybatis.plus.entity.OrdUser;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author: zhaoyan5
 */
@Mapper
public interface OrdUserMapper {
    /**
     * delete by primary key
     *
     * @param userOrderId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long userOrderId);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(OrdUser record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(OrdUser record);

    /**
     * select by primary key
     *
     * @param userOrderId primary key
     * @return object by primary key
     */
    OrdUser selectByUserId(Long userOrderId);


    OrdUser selectTableByUserId(String regionId, Long userOrderId);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(OrdUser record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(OrdUser record);
}
